#ifndef LOGDIALOG_H
#define LOGDIALOG_H

#include <QDialog>
#include <QFile>
#include <QTextStream>
#include <QTime>

namespace Ui {
class LogDialog;
}

class LogDialog : public QDialog
{
    Q_OBJECT

public:
    explicit LogDialog(const QString &fileName, QWidget *parent = 0);
    ~LogDialog();

    enum {
        maxTextLength = (1<<20),
    };

public slots:
    void msg(const QString msg);
    void save(const QString fileName);

private slots:
    void on_hideButton_clicked();

private:
    Ui::LogDialog *ui;

    QString m_fileName;
};

#endif // LOGDIALOG_H
